package cn.atc.mapper;


import cn.atc.pojo.Assemblytask;
import cn.atc.pojo.AssemblytaskExample;
import cn.atc.pojo.Finishedproductstype;
import cn.atc.pojo.Partformula;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssemblytaskMapper {
    long countByExample(AssemblytaskExample example);

    int deleteByExample(AssemblytaskExample example);

    int deleteByPrimaryKey(String id);

    int insert(Assemblytask record);

    int insertSelective(Assemblytask record);

    List<Assemblytask> selectByExample(AssemblytaskExample example);

    /**
     * 查找所有的装配任务，包括成品类型、装配班长、零件配方
     * @return
     */
    List<Assemblytask> selectAllWithEntity();


    Assemblytask selectByPrimaryKey(String id);


    int updateByExampleSelective(@Param("record") Assemblytask record, @Param("example") AssemblytaskExample example);

    int updateByExample(@Param("record") Assemblytask record, @Param("example") AssemblytaskExample example);

    int updateByPrimaryKeySelective(Assemblytask record);

    int updateByPrimaryKey(Assemblytask record);

    List<Finishedproductstype> selectAllFinishedproductstype();

    List<Partformula> selectAllParformulas();

    Assemblytask selectByIdWithEntitys(String id);
}